from pydantic import BaseSettings


class Settings(BaseSettings):
    app_host: str = '0.0.0.0'
    app_port: int = 8000

    env: str = 'DEV'

    db_url: str = ''

    kubernetes_namespace: str = 'default'
    kube_config_file: str = ''
    argo_url: str = ''
    prometheus_address: str = '19.30.100.11:9090'
    ide_domain: str = ''
    keycloak_url: str = ''
    keycloak_client_id: str = ''
    keycloak_realm_name: str = ''
    keycloak_user_name: str = ''
    keycloak_password: str = ''

    logging_format = ''
    logging_file_path = ''
    logging_level = 'info'

    admin_group_path = '/MegaIDE/admin'

    class Config:
        env_file = '.env'


settings = Settings()
